home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code2 / r3sare.js < prev   
Encoding:
JavaScript  |  2005-04-04  |  6.9 KB  |  252 lines

  1.  
  2. // JavaScript wrapper for inc/real/code2/r3sare.h
  3. // Auto generated file, do not modify by hand
  4. // Copyrights 2002, Realsoft Graphics Oy
  5.  
  6. var R3_SARE_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_SARE = 1738;
  11.  
  12.  
  13. // ==== Methods ==== 
  14.  
  15.  
  16. // Description: Load .r3d project.
  17. // Returns: ?, true if succeeded
  18. // p1: ?, load section bits, set to ~1 to load everything
  19. // p2: ?, set to true to 'replace' otherwise objects are inserted into
  20. //  the current project
  21. // p3: ?, file name
  22.  
  23. R3SAREM_LOADPROJECT = 1738000;
  24.  
  25. function _R3SAREM_LOADPROJECT(p1, p2, p3) {
  26.   return   this.r3DoA3(R3SAREM_LOADPROJECT, p1, p2, p3);
  27. }
  28.  
  29. // Description: Flush out the loaded project. You can call this 
  30.  
  31. R3SAREM_UNLOADPROJECT = 1738001;
  32.  
  33. function _R3SAREM_UNLOADPROJECT() {
  34.   this.r3DoA(R3SAREM_UNLOADPROJECT);
  35. }
  36.  
  37. // Description: Init rendering engine. This reads rendering settings, 
  38. //  geometric objects, materials and other objects from the
  39. //  project and passes them to the rendering engine.
  40. // Returns: ?, true if succeeded.
  41.  
  42. R3SAREM_INITRENDER = 1738002;
  43.  
  44. function _R3SAREM_INITRENDER() {
  45.   return   this.r3DoA(R3SAREM_INITRENDER);
  46. }
  47.  
  48. // Description: Start multi threaded rendering. The method returns as
  49. //  soon as the rendering is successfully started. 
  50. // Returns: ?, true if rendering was succesfully started. Rendering
  51. //  may still fail, for example, if disk quota was exeeded etc. 
  52.  
  53. R3SAREM_RENDER = 1738003;
  54.  
  55. function _R3SAREM_RENDER() {
  56.   return   this.r3DoA(R3SAREM_RENDER);
  57. }
  58.  
  59. // Description: Put the caller thread to a sleep till the scene is 
  60. //  rendered. The return value TRUE indicates that the
  61. //  rendering was succesfull. 
  62. // Returns: ?, true if rendering succeeded.
  63.  
  64. R3SAREM_WAIT = 1738004;
  65.  
  66. function _R3SAREM_WAIT() {
  67.   return   this.r3DoA(R3SAREM_WAIT);
  68. }
  69.  
  70. // Description: Cancel current rendering.
  71.  
  72. R3SAREM_CANCEL = 1738005;
  73.  
  74. function _R3SAREM_CANCEL() {
  75.   this.r3DoA(R3SAREM_CANCEL);
  76. }
  77.  
  78. // Description: Adds a R3CLID_RAWIMAGESETTINGS output with defined channels to output configuration.
  79. //  A possible previously defined output of this type will be replaced.
  80. //  Note: recall this if resolution changes, because it invalidates externally allocated image data buffers.  
  81. // Returns: object, address of created R3CLID_RAWIMAGESETTINGS object
  82. // p3: ?, R3SAREA_ChannelNames, R3SAREA_ChannelTypes, R3SAREA_ChannelData,
  83. //  R3SAREA_ChannelBindings
  84.  
  85. R3SAREM_SETOUTPUT = 1738006;
  86.  
  87. function _R3SAREM_SETOUTPUT(p3) {
  88.   return   this.r3Do(R3SAREM_SETOUTPUT, p3);
  89. }
  90.  
  91. // Description: Add a new output object to output configuration
  92. // p3: object, address of output target
  93.  
  94. R3SAREM_REGISTEROUTPUT = 1738008;
  95.  
  96. function _R3SAREM_REGISTEROUTPUT(p3) {
  97.   this.r3DoA(R3SAREM_REGISTEROUTPUT, p3);
  98. }
  99.  
  100. // Description: Remove an output from output configuration
  101. // p3: object, address of output object to be removed
  102.  
  103. R3SAREM_UNREGISTEROUTPUT = 1738009;
  104.  
  105. function _R3SAREM_UNREGISTEROUTPUT(p3) {
  106.   this.r3DoA(R3SAREM_UNREGISTEROUTPUT, p3);
  107. }
  108.  
  109.  
  110. // ==== Attributes ==== 
  111.  
  112.  
  113. // R3SAREA_Real ?r3real applicatiom model 
  114. R3SAREA_Real = 1738500;
  115. function SetR3SAREA_Real(value) {
  116.   this.r3Set(R3SAREA_Real, value); // R3OBJ*
  117. }
  118.  
  119. function GetR3SAREA_Real() {
  120.   var value = 0;
  121.   return this.r3Get(R3SAREA_Real, value); // R3OBJ*
  122. }
  123.  
  124. // R3SAREA_Renderer ?r3filren distributed rendering engine 
  125. R3SAREA_Renderer = 1738501;
  126. function SetR3SAREA_Renderer(value) {
  127.   this.r3Set(R3SAREA_Renderer, value); // R3OBJ*
  128. }
  129.  
  130. function GetR3SAREA_Renderer() {
  131.   var value = 0;
  132.   return this.r3Get(R3SAREA_Renderer, value); // R3OBJ*
  133. }
  134.  
  135. // R3SAREA_Progress ?progress model 
  136. R3SAREA_Progress = 1738502;
  137. function SetR3SAREA_Progress(value) {
  138.   this.r3Set(R3SAREA_Progress, value); // R3OBJ*
  139. }
  140.  
  141. function GetR3SAREA_Progress() {
  142.   var value = 0;
  143.   return this.r3Get(R3SAREA_Progress, value); // R3OBJ*
  144. }
  145.  
  146. // R3SAREA_LayerList ?current project 
  147. R3SAREA_LayerList = 1738503;
  148. function SetR3SAREA_LayerList(value) {
  149.   this.r3Set(R3SAREA_LayerList, value); // R3OBJ*
  150. }
  151.  
  152. function GetR3SAREA_LayerList() {
  153.   var value = 0;
  154.   return this.r3Get(R3SAREA_LayerList, value); // R3OBJ*
  155. }
  156.  
  157. // R3SAREA_ChannelName ?array of channel names 
  158. R3SAREA_ChannelName = 1738504;
  159. function SetR3SAREA_ChannelName(value) {
  160.   this.r3Set(R3SAREA_ChannelName, value); // char**
  161. }
  162.  
  163. function GetR3SAREA_ChannelName() {
  164.   var value = "";
  165.   return this.r3Get(R3SAREA_ChannelName, value); // char**
  166. }
  167.  
  168. // R3SAREA_ChannelType ?ïE≡_dú
  169. R3SAREA_ChannelType = 1738505;
  170. function SetR3SAREA_ChannelType(value) {
  171.   this.r3Set(R3SAREA_ChannelType, value); // R3TYPEID*
  172. }
  173.  
  174. function GetR3SAREA_ChannelType() {
  175.   var value = 0;
  176.   return this.r3Get(R3SAREA_ChannelType, value); // R3TYPEID*
  177. }
  178.  
  179. // R3SAREA_ChannelData ?array of channel buffers 
  180. R3SAREA_ChannelData = 1738506;
  181. function SetR3SAREA_ChannelData(value) {
  182.   this.r3Set(R3SAREA_ChannelData, value); // void**
  183. }
  184.  
  185. function GetR3SAREA_ChannelData() {
  186.   var value = 0;
  187.   return this.r3Get(R3SAREA_ChannelData, value); // void**
  188. }
  189.  
  190. // R3SAREA_ChannelBindings ?array of channel buffers 
  191. R3SAREA_ChannelBindings = 1738507;
  192. function SetR3SAREA_ChannelBindings(value) {
  193.   this.r3Set(R3SAREA_ChannelBindings, value); // char*[3]
  194. }
  195.  
  196. function GetR3SAREA_ChannelBindings() {
  197.   var value = "";
  198.   return this.r3Get(R3SAREA_ChannelBindings, value); // char*[3]
  199. }
  200.  
  201. // R3SAREA_UserData objectïE≡_dú
  202. R3SAREA_UserData = 1738508;
  203. function SetR3SAREA_UserData(value) {
  204.   this.r3Set(R3SAREA_UserData, value); // void *
  205. }
  206.  
  207. function GetR3SAREA_UserData() {
  208.   var value = 0;
  209.   return this.r3Get(R3SAREA_UserData, value); // void *
  210. }
  211.  
  212.  
  213.  
  214. function r3Sare () { 
  215.    this.base = r3God;
  216.    if(arguments.length) {
  217.       this.base(R3CLID_SARE, arguments);
  218.    }
  219.    // Methods
  220.    this.LOADPROJECT=_R3SAREM_LOADPROJECT;
  221.    this.UNLOADPROJECT=_R3SAREM_UNLOADPROJECT;
  222.    this.INITRENDER=_R3SAREM_INITRENDER;
  223.    this.RENDER=_R3SAREM_RENDER;
  224.    this.WAIT=_R3SAREM_WAIT;
  225.    this.CANCEL=_R3SAREM_CANCEL;
  226.    this.SETOUTPUT=_R3SAREM_SETOUTPUT;
  227.    this.REGISTEROUTPUT=_R3SAREM_REGISTEROUTPUT;
  228.    this.UNREGISTEROUTPUT=_R3SAREM_UNREGISTEROUTPUT;
  229.  
  230.    // Attributes
  231.    this.GetReal=GetR3SAREA_Real;
  232.    this.SetReal=SetR3SAREA_Real;
  233.    this.GetRenderer=GetR3SAREA_Renderer;
  234.    this.SetRenderer=SetR3SAREA_Renderer;
  235.    this.GetProgress=GetR3SAREA_Progress;
  236.    this.SetProgress=SetR3SAREA_Progress;
  237.    this.GetLayerList=GetR3SAREA_LayerList;
  238.    this.SetLayerList=SetR3SAREA_LayerList;
  239.    this.GetChannelName=GetR3SAREA_ChannelName;
  240.    this.SetChannelName=SetR3SAREA_ChannelName;
  241.    this.GetChannelType=GetR3SAREA_ChannelType;
  242.    this.SetChannelType=SetR3SAREA_ChannelType;
  243.    this.GetChannelData=GetR3SAREA_ChannelData;
  244.    this.SetChannelData=SetR3SAREA_ChannelData;
  245.    this.GetChannelBindings=GetR3SAREA_ChannelBindings;
  246.    this.SetChannelBindings=SetR3SAREA_ChannelBindings;
  247.    this.GetUserData=GetR3SAREA_UserData;
  248.    this.SetUserData=SetR3SAREA_UserData;
  249. }
  250.  
  251. r3Sare.prototype=new r3Root;
  252. // inc/real/code2/r3sare.h_H